package com.lmk.homework.w02;

public class SalariedEmployee extends   Employee{
    public SalariedEmployee(String name, int number, MyDate birthday) {
        super(name, number, birthday);
    }



    public SalariedEmployee(String name, int number, MyDate birthday, Integer monthlySalary) {
        super(name, number, birthday);
        this.monthlySalary = monthlySalary;
    }

    @Override
    public double earning() {

        return 0;
    }
    private Integer monthlySalary;

    public Integer getMonthlySalary() {
        return monthlySalary;
    }

    @Override
    public String toString() {
        return "SalariedEmployee{" +
                "number=" + number +
                ", birthday=" + birthday +
                ", monthlySalary=" + monthlySalary +
                '}';
    }

    public void setMonthlySalary(Integer monthlySalary) {
        this.monthlySalary = monthlySalary;
    }
}
